// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'sys_person',
			'employee_number',
			'uid',
			'display_name',
			'mobile',
			'title',
			'mail',
			'telephone_number',
			'identification_number',
			'organization_name',
			'organization_id',
			'id',
			'srfkey',
			'srfdataaccaction',
			'mdepartment_id',
			'srfmajortext',
			...wfKey,
		];
	}

	get employee_number() {
		return this.$DO.employee_number;
	}

	set employee_number(value: any) {
		this.$DO.employee_number = value;
	}
	get uid() {
		return this.$DO.uid;
	}

	set uid(value: any) {
		this.$DO.uid = value;
	}
	get display_name() {
		return this.$DO.display_name;
	}

	set display_name(value: any) {
		this.$DO.display_name = value;
	}
	get mobile() {
		return this.$DO.mobile;
	}

	set mobile(value: any) {
		this.$DO.mobile = value;
	}
	get title() {
		return this.$DO.title;
	}

	set title(value: any) {
		this.$DO.title = value;
	}
	get mail() {
		return this.$DO.mail;
	}

	set mail(value: any) {
		this.$DO.mail = value;
	}
	get telephone_number() {
		return this.$DO.telephone_number;
	}

	set telephone_number(value: any) {
		this.$DO.telephone_number = value;
	}
	get identification_number() {
		return this.$DO.identification_number;
	}

	set identification_number(value: any) {
		this.$DO.identification_number = value;
	}
	get organization_name() {
		return this.$DO.organization_name;
	}

	set organization_name(value: any) {
		this.$DO.organization_name = value;
	}
	get organization_id() {
		return this.$DO.organization_id;
	}

	set organization_id(value: any) {
		this.$DO.organization_id = value;
	}
	get id() {
		return this.$DO.id;
	}

	set id(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get mdepartment_id() {
		return this.$DO.mdepartment_id;
	}

	set mdepartment_id(value: any) {
		this.$DO.mdepartment_id = value;
	}
	get srfmajortext() {
		return this.$DO.display_name;
	}

	set srfmajortext(value: any) {
		this.$DO.display_name = value;
	}

	set sys_person(value: any) {
		this.$DO.id = value;
	}
	get sys_person() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
